<div ng-if="currentTab.type=='deliveryOrder'">
    <div ng-controller="deliveryOrderController" style="padding: 0;">
        <div class="mt10 clearfix">
            <span class="f14 fl h30 lh30">类型：</span>
            <div class="fl select w150"
                 ui-combobox
                 data="types"
                 ng-model="Page.filter.type"
                 text-field="text"
                 value-field="value">
            </div>
            <span class="f14 fl h30 lh30 ml10">当前步骤：</span>
            <div class="fl select w150"
                 ui-combobox
                 data="steps"
                 ng-model="Page.filter.step"
                 text-field="text"
                 value-field="value">
            </div>
            <div class="process-center-search">
                <input type="text" class="input-text fl ml10 w215"
                       ng-enter="search()"
                       placeholder="客户全称、合同编号"
                       ng-model="Page.filter.keyword">
                <a class="btn ml10 fl" ng-click="search()">搜索</a>
            </div>
        </div>
        <div class="table-responsive mt10" ng-controller="stockOutCtrl">
            <table class="table table-hover">
                <thead>
                <tr>
                    <th class="w40 text-center">序号</th>
                    <th class="w480">出库单名称</th>
                    <th class="w80">类型</th>
                    <th class="w130">发起时间</th>
                    <th class="w100">当前步骤</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="row in Page.rows">
                    <td class="text-center">{{ $index + 1 }}</td>
                    <td>
                        <a href="{{row.deliveryDetailUrl}}" target="_blank">
                            {{row.deliveryOrderName}}
                        </a>
                    </td>
                    <td>{{row.deliveryType}}</td>
                    <td>{{row.deliveryTime}}</td>
                    <td>{{row.currentStep}}</td>
                    <td>
                        <a class="mr5"
                           ng-if="row.currentStep==='财务复核'"
                           ui-dialog="确认出库单"
                           ui-dialog-template="<div>确认出库单 {{row.deliveryOrderName}}</div>"
                           ui-dialog-ok="orderQr(row.deliveryGuid, row)">确认</a>
                        <a class="mr5"
                           href="{{row.tepiStartUrl}}"
                           target="_blank"
                           ng-if="!isFqz&&row.deliveryType==='特批'&&row.currentStep==='未发起'">发起申请</a>
                        <a class="mr5"
                           ng-if="row.currentStep==='财务复核'||(row.deliveryType==='特批'&&(row.currentStep==='未发起'||row.currentStep==='发起中'))"
                           ui-dialog="打回"
                           ui-dialog-template="{{dhTpl}}"
                           ui-dialog-before-show="beforeDhShow($dialogScope, '打回')"
                           ui-dialog-ok="orderDh($data, row.deliveryGuid)">打回</a>
                    </td>
                </tr>
                </tbody>
            </table>
            <div class="no-data" ng-hide="Page.rows.length"><span>暂无数据</span></div>
        </div>
        <div ui-pagination=""
             page-index="Page.pagination.params[Page.pageIndexName]"
             total="Page.pagination.total"
             page-size="Page.pagination.params[Page.pageSizeName]"
             changed="Page.pagination.change($pageIndex, Page.pagination.params[Page.pageSizeName])">
        </div>
    </div>
</div>
